package com.jason.server.impl;

import com.jason.dubbo.api.HelloService;
import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello() {
        Random random = new Random();
        long time = random.nextInt(100);
        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello debbo server1";
    }
}
